﻿using System;

namespace DesignModeConsole.OOPAndPOP;

/// <summary>
/// 定义接口
/// </summary>
public interface IUserService
{
    public string Name { get; set; }

    //接口不可包含实例字段
    //public string Password;

    int Jia(int a, int b);

    string Splice(string a, string b);
}

public class UserService : IUserService
{
    public string Name
    {
        get => throw new NotImplementedException();
        set => throw new NotImplementedException();
    }

    public int Jia(int a, int b)
    {
        throw new NotImplementedException();
    }

    public string Splice(string a, string b)
    {
        throw new NotImplementedException();
    }
}